#include "main/utils.h"
using namespace std;

int add(int input1, int input2) {
  int sum = 0;
  int carry = 0;
  do {
    sum = input1 ^ input2;
    carry = (input1 & input2) << 1;
    input1 = sum;
    input2 = carry;
  } while (carry != 0);
  return sum;
}

int main() {
  int input1 = 1234;
  int input2 = 5678;
  int sum = add(input1, input2);
  cout << input1 << " + " << input2 << " = " << sum << endl;

  return 0;
}
